# https://github.com/percona/everest/releases/latest/download/everestctl-linux-amd64

#! /bin/sh

get_cli() {
  repo="percona/everest"
  cli="everestctl-linux-amd64"
  cli_name="everestctl"
  sudo rm -rf /usr/local/bin/${cli_name}
  mkdir demo && cd demo
  wget https://github.com/${repo}/releases/latest/download/${cli}
  # tar -zxvf ${cli}
  mv ${cli} ${cli_name}
  chmod 555 ${cli_name}
  sudo mv ${cli_name} /usr/local/bin/
  cd ..
  rm -rf demo
}

get_cli
everestctl install
kaf http://ghproxy.net/https://raw.githubusercontent.com/percona/everest/v1.3.0/deploy/quickst
art-k8s.yaml -n everest-system
# everestctl accounts set-password --username admin
